//----------------------------------------------------------------------------
// M A R I T I M E  R E S E A R C H  I N S T I T U T E  N E T H E R L A N D S
//----------------------------------------------------------------------------
// Copyright (C) 2011 - MARIN - All rights reserved - http://www.marin.nl
//----------------------------------------------------------------------------
// Program    : mermaid
// Module     : vbm
// File       : macros.h
// Author     : M.A. de Jong
//----------------------------------------------------------------------------

#ifndef GLOBALS_H
#define	GLOBALS_H

#include "/usr/local/cuda/include/vector_types.h"
#include <channel_descriptor.h>

static dim3 dimGrid;
static dim3 dimBlock;

static 
cudaChannelFormatDesc desc = cudaCreateChannelDesc(8 * sizeof(REAL), 0, 0, 0, 
    cudaChannelFormatKindFloat);

struct Grid {
    REAL *cc;
    REAL *nn;
    REAL *ee;
    REAL *ss;
    REAL *ww;
    REAL *ne;
    REAL *se;
    REAL *sw;
    REAL *nw;
    unsigned int nx;
    unsigned int ny;
    unsigned int cx;
    unsigned int cy;
};

#endif // GLOBALS_H
